﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="VehicleSalesReport.aspx.cs" Inherits="CRM.Web.ReportManage.VehicleSalesReport" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/report.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript"  src="<%= base.ResourcesPath %>Js/report.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
        <tr>
            <td class="left">
                <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
            </td>
            <td class="middle">
                <div class="pagetitle">
                    <div>
                        <asp:Label ID="Label1" runat="server">销售车辆报表</asp:Label></div>
                </div>
            </td>
            <td class="right">
                <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
            </td>
        </tr>
    </table>
    <div id="divMain">
        <table id="divReport" cellpadding="0" cellspacing="0" >
            <tr>
                <td style="width: auto;  vertical-align: top;">
                    <div id="divReportMain" style="width: 554px; overflow: scroll; vertical-align: top;">
                        <asp:GridView ID="gvReport" runat="server" CssClass="gridview" OnRowCreated="gvReport_RowCreated"
                            OnRowDataBound="gvReport_RowDataBound">
                            <RowStyle CssClass="row" />
                            <AlternatingRowStyle CssClass="row2" />
                            <HeaderStyle CssClass="header" />
                            <PagerStyle CssClass="pager" />
                        </asp:GridView>
                    </div>
                </td>
                <td id="tdRight" style="width: 300px;  vertical-align: top;">
                    <div style="vertical-align: top; height: 280px; width: 300px; overflow: scroll; border: 0px;">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:GridView ID="gvCondition" Width="100%" CssClass="gridview" runat="server" AutoGenerateColumns="False"
                                    OnRowCreated="gvCondition_RowCreated">
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="cbConditionHeader" runat="server" AutoPostBack="True" OnCheckedChanged="cbConditionHeader_CheckedChanged" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="cbCondition" runat="server" CssClass="cbItem" />
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:BoundField HeaderText="经销商名称" DataField="DEALERNAME" />
                                        <asp:BoundField HeaderText="经销商编码" DataField="DEALERCODE" />
                                        <asp:BoundField HeaderText="事业部名称" DataField="BUSINESSDIVISIONNAME" Visible="false" />
                                        <asp:BoundField HeaderText="事业部编码" DataField="BUSINESSDIVISIONCODE" Visible="false" />
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <table cellpadding="0" cellspacing="0" border="0" width="100%" class="gridview">
                                            <tr>
                                                <th style="width: 24px;">
                                                    <input type="checkbox" />
                                                </th>
                                                <th>
                                                    经销商名称
                                                </th>
                                                <th>
                                                    经销商编码
                                                </th>
                                                <th>
                                                    事业部名称
                                                </th>
                                                <th>
                                                    事业部编码
                                                </th>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <EmptyDataRowStyle CssClass="empty" />
                                    <RowStyle CssClass="row" />
                                    <AlternatingRowStyle CssClass="row2" />
                                    <HeaderStyle CssClass="header" />
                                    <PagerStyle CssClass="pager" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
            <div id="tdRightBottom" style=" vertical-align: top; height: 280px; width: 300px; overflow: scroll; border: 0px; ">
                        <table cellpadding="0" cellspacing="0" class="search">
                            <tr>
                                <td class="title">
                                    开始时间：&nbsp;
                                </td>
                                <td class="content">
                                    <asp:TextBox ID="txtBeginDate" runat="server" CssClass="datetime"></asp:TextBox>
                                    <asp:TextBox ID="txtBeginTime" runat="server" CssClass="datetime"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    结束时间：&nbsp;
                                </td>
                                <td class="content">
                                    <asp:TextBox ID="txtEndDate" runat="server" CssClass="datetime"></asp:TextBox>
                                    <asp:TextBox ID="txtEndTime" runat="server" CssClass="datetime"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    事业部：&nbsp;
                                </td>
                                <td class="content">
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlBusiness" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlBusiness_SelectedIndexChanged"
                                                AutoPostBack="true">
                                            </asp:DropDownList>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td class="title" align="right">
                                    <asp:UpdatePanel ID="UpdatePanel7" runat="server">
                                        <ContentTemplate>
                                            <asp:CheckBox ID="ckbVisible" Style="font-size: smaller" CssClass="" runat="server"
                                                OnCheckedChanged="ckbVisible_CheckedChanged" AutoPostBack="true"></asp:CheckBox>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                                <td class="" align="left">
                                    只统计汇总数据&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="tdbtn">
                                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="btn" CommandName="Search"
                                        OnClick="btnSearch_Click" />
                                    <asp:Button ID="btnExport" CssClass="btn" CommandName="Search" runat="server" Text="导出EXCEL"
                                        OnClick="btnExport_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
